<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.serviceprovider.business.utility.SecurityContextUser"%>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>

<head>
<title>Reports</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link  rel="stylesheet" href="<c:url value="/css/styles.css"/>"/>
<link  rel="stylesheet" href="<c:url value="/javascripts/jscalendar/theme/calendar-system.css"/>"/>
<script src="<c:url value="/javascripts/jscalendar/calendar-cfg.js"/>"  type="text/javascript"></script>
<script src="<c:url value="/javascripts/calendar.js"/>"  type="text/javascript"></script>
<script src="<c:url value="/javascripts/jscalendar/lang/calendar-en.js"/>"  type="text/javascript"></script>
<script src="<c:url value="/javascripts/jscalendar/calendar-setup.js"/>"  type="text/javascript"></script>

<script src="<c:url value="/javascripts/common.js"/>" type="text/javascript">
</script>
</head>
<body><div class="page">
<%
    Object isAdmin = SecurityContextUser.isAdmin();
    if(Boolean.TRUE.equals(isAdmin)){
        %>
            <%@include file="../../admin/top_menu.jsp"%>
        <%
    } else{
        %>
            <%@include file="../top_menu.jsp"%>
        <%
    }
    %>
<table width=100%>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>

</table><div class="contentArea">
 
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr><td colspan="2">
		<%@include file="/WEB-INF/jsp/include/header.jsp"%>
		</td>
			</tr>
			<tr><td colspan="2">
		<c:import url="/WEB-INF/jsp/include/provider.jsp" />
		</td>
			</tr>
			<tr>
				<td><h4><spring:message code="sp.allfeesreports.label.standardreportview" /></h4></td>
				<td align="right">
					<span><spring:message code="sp.allfeesreports.label.level1userid" /> <a href="#"></a></span>
					<span><spring:message code="sp.allfeesreports.label.level1username" /> <a href="#"></a></span>
				</td>
			</tr>
	</table>
	<c:import url="select_report.jsp" />

    <table border=0 cellpadding=4 cellspacing=1 width=100%>
        <thead>
            <tr><th colspan="4" class="table_title">Individual Payee Report</th></tr>
        </thead>
 

    	<c:forEach var="payeeRecord" items="${reportData.payeeRecords}">
			<thead>
        		<tr>
        			<th colspan="4">Payee: ${payeeRecord.payeeName}</th>
        		</tr>
				<tr>
					<th><spring:message code="sp.allfeesreports.label.ser" /></th>
					<th><spring:message code="sp.allfeesreports.label.ssn" /></th>
					<th><spring:message code="sp.allfeesreports.label.customername" /></th>
					<th><spring:message code="sp.allfeesreports.label.fee" /></th>
				</tr>
	        </thead>
	        
			<c:forEach var="record" items="${payeeRecord.records}" varStatus="i">
				<tr>
					<td>${i.index+1}</td>
					<td>${record.ssn}</td>
					<td>${record.customerName}</td>
					<td>${record.payee1fee}</td>
				</tr>
			</c:forEach>	        
	        
	        <tr>
	        	<td colspan="4"><hr /></td>
	        </tr>
	        <tr>
	        	<td colspan="3" class="totals">Totals: </td>
	        	<td>${payeeRecord.totalFee}</td>
	        </tr>
	        <tr>
	        	<td colspan="4"><hr /></td>
	        </tr>
			<tr><td>&nbsp;&nbsp;</td></tr>	        	        	        
	    </c:forEach>
	    		
    </table>
</div> </div><%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>

</html>
